package com.ruicar.afs.jobadmin.core.trigger;

import com.ruicar.afs.jobadmin.core.util.I18nUtil;

/**
 * The type TriggerTypeEnum
 * <p>Description: </p>
 *
 * @author Fzero
 * @version 1.0
 * @date Created on 2020.06.13 14:17:11
 * @since 1.0
 */
public enum TriggerTypeEnum {

    /**
     * Manual trigger type enum
     * <p>Description: </p>
     */
    MANUAL(I18nUtil.getString("jobconf_trigger_type_manual")),
    /**
     * Cron trigger type enum
     * <p>Description: </p>
     */
    CRON(I18nUtil.getString("jobconf_trigger_type_cron")),
    /**
     * Retry trigger type enum
     * <p>Description: </p>
     */
    RETRY(I18nUtil.getString("jobconf_trigger_type_retry")),
    /**
     * Parent trigger type enum
     * <p>Description: </p>
     */
    PARENT(I18nUtil.getString("jobconf_trigger_type_parent")),
    /**
     * Api trigger type enum
     * <p>Description: </p>
     */
    API(I18nUtil.getString("jobconf_trigger_type_api"));

    /**
     * Trigger type enum
     *
     * @param title title
     */
    private TriggerTypeEnum(String title) {
        this.title = title;
    }

    /**
     * Title
     * <p>Description: </p>
     */
    private String title;

    /**
     * Gets title *
     *
     * @return the title
     */
    public String getTitle() {
        return title;
    }

}
